<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>User Category List</title>
<%@include file="../common_Admin_imports.jsp"%>
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery-1.11.0.min.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/bootstrap.js " />"></script>

<link href="<c:url value="/resources/css/bootstrap.min.css " />"
	rel="stylesheet" type="text/css" />
<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/resources/css/backend/style.css" />"
	rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">List of User Category</div>
						<div class="header_right span8">
							<div class="input-append">
								<input class="span2" id="appendedInputButtons" type="text" />
								<button class="btn" type="button">Search</button>
							</div>
							<jsp:include page="../common_link.jsp" />
						</div>
					</div>
				</div>

				<div class="row-fluid">
					<div class="main_table">
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>No</th>
									<th>Category</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="userCategory" items="${userCategories}">
									<tr>
										<td>${userCategory.id}</td>
										<td>${userCategory.name}</td>
										<td><a class="btn btn-info"
											href="${pageContext.request.contextPath}/admin/usercategory/edit/${userCategory.id}.html">Edit</a><br />
										</td>
										<td><a class="btn btn-danger"
											lang="${pageContext.request.contextPath}/admin/usercategory/delete/${userCategory.id}.html"
											href="javascript:void(0);"
											onclick="return confirmAndDelete(this);">Delete</a><br /></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
						<a class="btn btn-success"
							href="${pageContext.request.contextPath}/admin/usercategory/add.html">New</a>
					</div>
				</div>
			</div>
		</div>
	</div>

</body>
</html>